package com.zaydanwu.cla.service;

import com.zaydanwu.cla.model.Students;

/**
 * @BelongsProject: cla
 * @BelongsPackage: com.zaydanwu.cla.service
 * @Author: zaydanwu
 * @CreateTime: 2018-12-10 22:40
 * @Description:
 */
public interface StudentsService {

    /**
     * 获取学生信息
     *
     * @param name 学生姓名
     * @return 学生信息
     */
    Students getStudentMessage(String name);

    /**
     * 保存学生信息
     *
     * @param students 学生信息
     * @return 保存的条数
     */
    int saveStudentMessage(Students students);

    Students getStudentMessageByStuNo(Long stuNo);

    Students getStudentMessage(Long stuNo, String password);

    int updatePassword(Long stuNo, String phoneNumber, String newPassword);
}
